fastwebsockets is a fast WebSocket server implementation.
Passes the Autobahn|TestSuite1 and fuzzed with LLVM's libfuzzer.
You can use it as a raw websocket frame parser and deal with spec compliance yourself, or you can use it as a full-fledged websocket server.
use ;
async
Fragmentation
By default, fastwebsockets will give the application raw frames with FIN set. Other crates like tungstenite which will give you a single message with all the frames concatenated.
For concanated frames, use FragmentCollector
:
let mut ws = after_handshake;
let mut ws = new;
let incoming = ws.read_frame.await?;
// Always returns full messages
assert!;
permessage-deflate is not supported yet.